#include <iostream>
#include <cstdio>
#include <unistd.h>


int main()
{
	printf("我是myexec, pid: %d\n",getpid());
	//execl("./other","other",nullptr);
	int n = execl("/bin/ls","ls","-a","--color","-l",nullptr);
	printf("execl return val: %d\n",n);

	//execl("/usr/bin/top","top",nullptr);
	return 0;
}



